import request from '@/utils/request'
function getUrl(url) { return '/api/' + url }

//添加任务信息
export function addInDailyTasks(data) {
    return request({
        url: getUrl("admin/inDailyTasks/addInDailyTasks"),
        method: 'post',
        data
    })
}

//更新任务信息
export function updateInDailyTasks(data) {
    return request({
        url: getUrl("admin/inDailyTasks/updateInDailyTasks"),
        method: 'post',
        data
    })
}


export function deleteInDailyTasks(data) {
    return request({
        url: getUrl("admin/inDailyTasks/deleteInDailyTasks"),
        method: 'post',
        data
    })
}


//获取任务信息数据 getInDailyTasksVo
export function getInDailyTasksVo(data) {
    return request({
        url: getUrl("admin/inDailyTasks/getInDailyTasksVo"),
        method: 'post',
        data
    })
}

export function getTaskType(data) {
    return request({
        url: getUrl("common/getTask"),
        method: 'post',
        data
    })
}